package com.project.user.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.project.common.base.BaseEntity;

/**
 * 用户收货地址表 user_address
 *
 * @author administrator
 * @date 2021-02-23
 */
public class UserAddress extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 主键编号
     */
    private Long id = 0L;
    /**
     * 用户编号
     */
    private Long userId;
    private String province = "";
    private String city = "";
    private String district = "";
    /**
     * 收货地址
     */
    private String receiveAddr = "";
    /**
     * 收货人
     */
    private String receiveUser = "";
    /**
     * 收货电话
     */
    private String receiveTel = "";
    /**
     * 1默认0非默认
     */
    private String isDefault = "";

    public void setId(Long id) {
        this.id = id;
    }

    public Long getId() {
        return id;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setReceiveAddr(String receiveAddr) {
        this.receiveAddr = receiveAddr;
    }

    public String getReceiveAddr() {
        return receiveAddr;
    }

    public void setReceiveUser(String receiveUser) {
        this.receiveUser = receiveUser;
    }

    public String getReceiveUser() {
        return receiveUser;
    }

    public void setReceiveTel(String receiveTel) {
        this.receiveTel = receiveTel;
    }

    public String getReceiveTel() {
        return receiveTel;
    }

    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("userId", getUserId())
                .append("receiveAddr", getReceiveAddr())
                .append("receiveUser", getReceiveUser())
                .append("receiveTel", getReceiveTel())
                .toString();
    }

    public String getIsDefault() {
        return isDefault;
    }

    public void setIsDefault(String isDefault) {
        this.isDefault = isDefault;
    }

    public String getProvince() {
        return province;
    }

    public void setProvince(String province) {
        this.province = province;
    }

    public String getCity() {
        return city;
    }

    public void setCity(String city) {
        this.city = city;
    }

    public String getDistrict() {
        return district;
    }

    public void setDistrict(String district) {
        this.district = district;
    }

    public UserAddress() {
    }

    public UserAddress(Long userId) {
        this.userId = userId;
    }
}
